/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bookstore.bean;

import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Caleido
 */
@XmlRootElement(name="Order")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "orderId",
    "orderTime",
    "city",
    "address",
    "phone",
    "name",
    "username",
    "orderDetails"
})
public class OrderBean {
    @XmlElement(required = true)
    private String orderId;
    @XmlElement(required = true)
    private String orderTime;
    @XmlElement(required = true)
    private String city;
    @XmlElement(required = true)
    private String address;
    @XmlElement(required = true)
    private String phone;
    @XmlElement(required = true)
    private String name;
    @XmlElement(required = true)
    private String username;
    @XmlElement(required = true)
    private OrderDetailsBean orderDetails;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public OrderDetailsBean getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(OrderDetailsBean orderDetails) {
        this.orderDetails = orderDetails;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public OrderBean() {
    }

    public OrderBean(String orderId, String orderTime, String city, String address, String phone, String name, String username, OrderDetailsBean orderDetails) {
        this.orderId = orderId;
        this.orderTime = orderTime;
        this.city = city;
        this.address = address;
        this.phone = phone;
        this.name = name;
        this.username = username;
        this.orderDetails = orderDetails;
    }
}
